package org.jeecg.modules.health_records.past_operation.service;

import org.jeecg.modules.health_records.past_operation.entity.PastOperationInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 手术史表
 * @Author: jeecg-boot
 * @Date:   2025-06-25
 * @Version: V1.0
 */
public interface IPastOperationInfoService extends IService<PastOperationInfo> {
    /**按recordid查询**/
     List<PastOperationInfo> queryByRecordId(PastOperationInfo pastOperationInfo);
    /**电子病历信息查询接口（查询时间最新的那条数据）--按recordid查询**/
     List<PastOperationInfo> queryElecRecord(PastOperationInfo pastOperationInfo);
    /**新规则:查询当下时间往前12个月的就诊数据作为电子病历数据**/
    List<PastOperationInfo>  newQueryElecRecord(PastOperationInfo pastOperationInfo);
    /**新规则：除去当下时间往前12个月的就诊数据，剩下的数据为既往病历数据**/
    List<PastOperationInfo>  newQueryPastRecord(PastOperationInfo pastOperationInfo);

}
